package com.example.studentmanager.model;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Course implements Serializable{
    private static final long serialVersionUID = 1L;
      private   String  coursename;
      private  Integer credit;
      private  Integer credithour;
      private  Integer teacherid;
      private String term;
      private String textbook;
      private int courseid;
      private String status;

    public Course() {
    }

    public Course(String coursename, Integer credit, Integer credithour, Integer teacherid, String term, String textbook, int courseid, String status) {
        this.coursename = coursename;
        this.credit = credit;
        this.credithour = credithour;
        this.teacherid = teacherid;
        this.term = term;
        this.textbook = textbook;
        this.courseid = courseid;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Course{" +
                "coursename='" + coursename + '\'' +
                ", credit=" + credit +
                ", credithour=" + credithour +
                ", teacherid=" + teacherid +
                ", term='" + term + '\'' +
                ", textbook='" + textbook + '\'' +
                ", courseid=" + courseid +
                ", status='" + status + '\'' +
                '}';
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public Integer getCredithour() {
        return credithour;
    }

    public void setCredithour(Integer credithour) {
        this.credithour = credithour;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public String getTextbook() {
        return textbook;
    }

    public void setTextbook(String textbook) {
        this.textbook = textbook;
    }

    public int getCourseid() {
        return courseid;
    }

    public void setCourseid(int courseid) {
        this.courseid = courseid;
    }
}
